package day7;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

/**
 * @author oldliu
 * @since 1.0
 */
public class BuffRead {
    public static void main(String[] args) {
        try {
            BufferedReader br=new BufferedReader(new FileReader("d:/tmp/fuyang.txt"));
           // String s = br.readLine();//读一行
            String s=null;
            while ((s=br.readLine())!=null){
                System.out.println("读取的长度是："+s.length()+",内容是："+s);
            }
            br.close();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
